package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.frontVo.CourseQueryVo;
import com.atguigu.eduservice.entity.frontVo.CourseWebVo;
import com.atguigu.eduservice.entity.vo.CourseInfoForm;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author lhl
 * @since 2022-07-04
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourse(CourseInfoForm course);

    CourseInfoForm getCourseById(String courseID);

    String updateSaveCourse(CourseInfoForm course);
    CoursePublishVo getCoursePublishVoById(String id);

    void publishCourseById(String id);

    void removeCourseById(String id);

    Map<String, Object> getCourseList(Page<EduCourse> eduCoursePage, CourseQueryVo current);

    CourseWebVo selectInfoWebById(String id);
}
